/*
 * @Author: qiuz
 * @Date: 2018-08-14 13:42:49
 * */

export default function MPDate(...args) {
	if (args.length === 1 && typeof args[0] === 'string' && isNaN(Date.parse(args[0]))) {
		// '2000-01-01 00:00:00' => '2000/01/01 00:00:00'
		args[0] = args[0].replace(/-/g, '/');
	}
	return new Date(args);
};
